package com.dm.yyxr.pojo.dto;

import lombok.Data;

import java.util.Date;

@Data
public class SupplystatusDto {
    Date logdate;
    Integer area_code;
    Integer community_code;
    Integer admin_code;
    String area_name;
    String community_name;
    String admin_name;
    Double supply_num;
    Date supplytime;
    Date approvaltime;
    Integer status;

    public String getStatus() {
        if(status==0){
            return "待审批";
        }else if(status==1){
            return "审批通过";
        }else if(status==2){
            return "审批未通过";
        }else {
            return "错误";
        }
    }
}
